import pytest

from Day10.common.tools import add

data =[(1,2,3),(2,3,5),(3,4,7),(4,5,9)]

class TestAdd(object):

    @pytest.mark.parametrize("x,y,expect",data)
    def test_add(self,x,y,expect):
        result =add(x,y)
        assert result == expect